package com.xtravel.discovery.dto;

import com.xtravel.common.database.dto.DtoBase;

public class LiveRecord extends DtoBase {
    public String countryName;
    public String name;
    public boolean isLive;
    public String cover;
    public String duration;
    public String size;
    public int viewerCount;
    public int retweetCount;
    public int likedCount;
    public int favoriteCount;
    public String locationId;
    public String anchorId;
    public String createdTime;
    public String isPrivate;
    public String liveUrl;
    public String liveSessionId;
    public LiveLocation location;
    public LiveAuthor anchor;
    public String groupId;//群聊天的sessionId
    public boolean isLiked;
    public boolean isFavorted;
    public boolean isShared;

    public LiveRecord(int id)
    {
        super(id);
        this.name = "黄石公园";
        this.countryName = "美国";
        this.cover = "http://www.qhlly.com/files/2013-1/20130122102448149292.jpg";
        this.isLive = true;
        this.retweetCount = 1;
        this.favoriteCount = 2;
        this.likedCount = 3;
        this.viewerCount = 4;
        this.anchor = new LiveAuthor("张三");
        this.location = new LiveLocation("afsa", "伦敦", "0", "1", "", "");
    }

    public class LiveLocation{
        public String id;
        public String address;
        public String cityName;
        public String lng;
        public String lat;
        public String countryId;

        public LiveLocation(String address, String cityName, String countryId, String id, String lat, String lng) {
            this.address = address;
            this.cityName = cityName;
            this.countryId = countryId;
            this.id = id;
            this.lat = lat;
            this.lng = lng;
        }
    }

    public class LiveAuthor{
        public String id;
        public String nickname;
        public String description;
        public String avatarUri;
        public String gender;
        public String city;
        public String status;
        public int liveCount;
        public int followersCount;
        public int friendsCount;
        public int favoriteCount;
        public String from;
        public String openId;
        public String token;
        public String createdTime;

        public LiveAuthor(String nickname) {
            this.nickname = nickname;
        }
    }
}
